import { _decorator, Button, Component, Node, Sprite, SpriteFrame, UIOpacity, Vec3, Animation } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('TeacherControl')
export class TeacherControl extends Component {
    start() {
        const animation = this.node.getComponent(Animation);
        // console.log('呜呼：\n', animation);
        animation.getState('TeacherAnimation').repeatCount = 100000;
        animation.getState('TeacherAnimation').speed = 0.5;
        animation.play("TeacherAnimation");
    }
}


